import { Injectable } from '@nestjs/common';
import { InjectRedis } from '@nestjs-modules/ioredis';
import Redis from 'ioredis';
@Injectable()
export class AppService {
  constructor(@InjectRedis() private readonly redis: Redis) {}
  async getHello(): Promise<string> {
    await this.redis.set('hqh', 'zs');
    const str = await this.redis.get('hqh');
    console.log('str', str);
    return `Hello World!`;
  }
}
